<template>
	<el-card shadow="hover" header="版本信息">
		<div style="height: 210px;text-align: center;">
			<img src="img/ver.svg" style="height:140px"/>
			<p style="margin-top: 20px;">最新版本{{ webSetting.copyrightNumber }} </p>
		</div>
	</el-card>
</template>

<script>
	export default {
		title: "版本信息",
		icon: "el-icon-monitor",
		description: "当前项目版本信息",
		data() {
			return {
				webSetting: {}
			}
		},
		mounted() {
			this.getVer()
		},
		methods: {
			async getVer(){
				try {
					this.webSetting = this.$TOOL.data.get("Setting");
				} catch (error) {
					console.error('error:', error);
				}
			},
			golog(){
				window.open("https://gitee.com/lolicode/scui/releases")
			},
			gogit(){
				window.open("https://gitee.com/lolicode/scui")
			}
		}
	}
</script>
